import request from '@/utils/request'
// 新增老师
export function addOrder(data) {
    return request({
        url: '/admin/order',
        method: 'post',
        data,
        showLoading: true
    })
}

// 老师详情
export function getOrderDetail(id) {
    return request({
        url: '/admin/order/' + id,
        method: 'get',
        showLoading: true
    })
}
// 修改老师
export function editOrder(data) {
    return request({
        url: '/admin/order',
        method: 'put',
        data,
        showLoading: true
    })
}
// 批量删除
export function delOrder(idList) {
    return request({
        url: '/admin/order/' + idList,
        method: 'delete',
    })
}

export function listOrder(data) {
    return request({
        url: '/admin/order/list',
        method: 'post',
        data
    })
}
